package com.hjj.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DictionaryValue {
    private String id;
    private String value;
    @NotNull(message = "DictionaryValue.text.NotNull")
    @NotEmpty(message = "DictionaryValue.text.NotEmpty")
    private String text;
    @Min(value = 1, message = "DictionaryValue.orderNo.Min")
    @Max(value = 10000, message = "DictionaryValue.orderNo.Max")
    private int orderNo;
    private String typeCode;
    private DictionaryType dictionaryType;
}
